package com.foreknow.demo12;

/**
 * 面试题：String和StringBuffer的区别
 */
public class StringBufferDemo {
    public static void main(String[] args) {
        String s1 = "fender";
        System.out.println(s1);

        StringBuffer stringBuffer = new StringBuffer("gibson");
        stringBuffer.append("good");
        stringBuffer.reverse();
        System.out.println(stringBuffer);
    }
}
